﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace TripleTriad
{
    public partial class Regole : PhoneApplicationPage
    {
        public Regole()
        {
            InitializeComponent();
            textBlockRegole.Text = "Triple Triad is played on a three-by-three (3x3) square grid of blank spaces, where cards will be placed as the game progresses.\nEach card has four numbers, each number corresponds to one of the four sides of the card.\nIn a basic game of Triple Triad, each player has five cards.\n\n\nWinning\n\nTo win, a majority of the total ten cards played (including the one card that is not placed on the board) must be of the player's card color.\nTo do this, the player must capture cards. To capture a card, the player must place cards adjacent to an opponent's card, whereupon the 'ranks' of the sides where the two cards touch will be compared.\nIf the rank of the opponent's card is higher than the player's card, the player's card will be captured and turned into the opponent's color. If, however, it is the player's rank that is higher, the opponent's card will be captured and changed into the player's color instead.\nCapturing can only occur during that player's turn, and no other opponent can capture a card during said turn.\nWinning a game, you'll be rewarded with 50 points (useful for buying cards); losing, however, you'll lose 20 points.";
        }
    }
}